C (128/254)

From:rudolph-riedel
Date:12 Apr 00 at 22:56:27
Subject:Re: Rexx-Result?

amiga-c@egroups.com wrote on 11.04.2000:

Hello!

I have the bad feeling that I didn`t made clear enough what I`m
actually trying to do - sorry.

This is my code (basically):

----
long result;

[...]
if(lock=Lock(...
{
[...]
if(StatFib->fib_DirEntryType<0)
{
result=0;
}
else
{
result=1;
}
}
else
{
result=-1;
}
rxMsg->rm_Result2=result;
----

So result is "0" if the file exist, "1" if it`s a dir and
"-1" if the file doesn`t exist.

The Arexx-script below however will print something like this:

----
c:list 0 5108 5388 37.5 ----RWED RESULT
1
----

Well, and 'result' is also printed to the base stem-var "lala" here.

And I get an recoverable alert.

> ----
> /*
> */
>
> OPTIONS RESULTS
> parse arg Port
>
> Address VALUE Port
>
> Filestat 'c:list' var lala
> say 'c:list' lala lala.size lala.date lala.comment lala.protect result
>
> CALL EXISTS("c:list")
> say result
> ----

So if it`s neither rm_Result1 nor rm_Result2 that have to be filled
for a correct 'result' - what else???

Greetz - Rudi